package com.vote.admin.controller;

import com.vote.admin.service.AdminMainService;
import com.vote.admin.service.AdminViewService;
import com.vote.admin.vo.result.ViewResult;
import com.vote.common.entity.VoteMenu;
import com.vote.common.returns.RespEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import java.util.List;

@RestController
@RequestMapping("/admin-view")
@Slf4j
@Api(value = "管理平台总览页", tags = "管理平台总览页")
public class AdminViewController {

    @Resource
    private AdminViewService adminViewService;

    @GetMapping("/view")
    @ApiOperation(value = "投票活动状态统计")
    public RespEntity<ViewResult> getViewInfo() {
        RespEntity<ViewResult> respEntity = adminViewService.getViewInfo();
        return respEntity;
    }
}
